# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-wikipedia
pkgver=1.4.5
pkgrel=3
pkgdesc="Wikipedia API for Python"
url="https://github.com/barrust/Wikipedia"
arch="noarch"
license="MIT"
depends="python3 py3-beautifulsoup4 py-requests"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/barrust/wikipedia/archive/v$pkgver/wikipedia-v$pkgver.tar.gz"
builddir="$srcdir/Wikipedia-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1d5f95f568ef4f479f16416d5474db5ce1bf5588a4d30c51d22fea6dd9d052ee0176829cf60e3c720fcb20fd862bae21d320407b370fdfe0a7d468b770d37735  wikipedia-v1.4.5.tar.gz"
